function InitializeLeftTree()
{
	var hostUrl=window.location.host;
	var TreeJsonUrl="Http://"+hostUrl+"/ssjc/dl/roadbasicinfo!getDataByDistrict.action";
	//ajax请求
	$.ajax({
		   url: TreeJsonUrl,
		   type: 'post',
		   dataType: "json",
		   success: function(data){
		     //解析Json
			  var HtmlContent= createTree(data.data);
		   }
		 });
}

//根据Json生成树
function createTree(jsons){
    if(jsons != null){
        var ul = '<ul class="">' ;
            for(var disindex=0;disindex<jsons.length;disindex++){
            	
                ul += '<ul class="">' + jsons[disindex].name + "</ul>" ;
                for(var roadindex=0;roadindex<jsons[disindex].result.length;roadindex++)
                	{
                	  ul += '<li>' + jsons[disindex].result[roadindex].roadName + "</li>" ;
                	}
                            
        }
        ul += "</ul>" ;
   }
    return ul ;
}